package com.c3w.synchro.member.service;

import com.c3w.synchro.common.dao.BeanDao;
import com.c3w.synchro.common.service.BeanService;
import com.c3w.synchro.common.validation.Validator;
import com.c3w.synchro.common.validation.event.DuplicateBeanException;
import com.c3w.synchro.member.bean.SynchroEvent;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.PostConstruct;
import java.util.List;

/**
 * User: magirard
 * Date: 12-11-14
 */
@Service("synchroEventService")
public class SynchroEventServiceImpl extends BeanService<SynchroEvent> {
    @Autowired
    private BeanDao<SynchroEvent> synchroEventDao;

    @Autowired
    private Validator<SynchroEvent> synchroEventValidator;

    @PostConstruct
    public void initService() {
        setBeanDao(synchroEventDao);
        setBeanValidator(synchroEventValidator);
    }

}
